package com.compass.doctor.ui.mine.adapter

import android.view.LayoutInflater
import android.view.ViewGroup
import com.compass.doctor.databinding.DialogBankCardItemBinding
import com.compass.framework.adapter.BaseBindViewHolder
import com.compass.framework.adapter.BaseRecyclerViewAdapter
import com.compass.framework.model.ScreenTag
import com.compass.framework.model.WithdrawType

/**
 * Description： 对话框银行卡adapter
 * Date:2023/12/26 21:47
 */
class DialogBankCardAdapter : BaseRecyclerViewAdapter<WithdrawType, DialogBankCardItemBinding>() {


    override fun getViewBinding(
        layoutInflater: LayoutInflater,
        parent: ViewGroup,
        viewType: Int
    ): DialogBankCardItemBinding {
        return DialogBankCardItemBinding.inflate(layoutInflater, parent, false)
    }

    override fun onBindDefViewHolder(
        holder: BaseBindViewHolder<DialogBankCardItemBinding>,
        item: WithdrawType?,
        position: Int
    ) {
        if (item == null) return
        holder.binding.apply {
            tvTitle.text=item.title
            tvExplain.text=item.explain

        }
    }
}